# from multiprocessing import Process
from threading import Thread as Process
from time import sleep

def something():
  for i in range(100):
    print(f'count: {i}')
    sleep(1)
    if should_stop:
      break

should_stop = False
def stop():
  global should_stop
  should_stop = True

process__ = Process(target=something)
process__.stop = stop